package com.example.order.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("account-service")
public interface AccountClient {

    @PostMapping("/account//money/deduct")
    void deduct(@RequestParam("userId") String userId,
                @RequestParam("money") Integer money);

}
